<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>[Generic Component Framework v3] GCF::ObjectMapEventListener Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<!--link href="tabs.css" rel="stylesheet" type="text/css"-->
</head><body>
 <div id="wrapper">
    <div id="logo_box">
        <a class="img_link" href="https://github.com/pnudupa/gcf" target="_blank" ><img style="float:left;margin-left:10px;margin-top:5px;margin-bottom:5px;"src="header_gcf_logo.jpg" alt="GCF LOGO"/></a>
        <a class="img_link" href="https://www.vcreatelogic.com/" target="_blank" ><img style="float:right;margin-right:10px; margin-top: 30px;" src="header_vcl_logo.jpg" alt="VCL LOGO"/></a>
        <div style="clear:both"></div>
    </div>
    <div class="nav">
        <ul>
            <li class="selectedpage">
                <a class="a-home" href="index.html" >
                    <span>Home</span>
                </a>
            </li>
            <li>
                <a class="a-classes " href="classes.html">
                    <span>All Classes</span>
                </a>
            </li>
            <li>
                <a class="a-home " href="gcf_modules.html">
                    <span>Modules</span>
                </a>
            </li>
            <li>
                <a class="a-home " href="gcf_guides_and_videos.html">
                    <span>Guides & Videos</span>
                </a>
            </li>
            <li>
                <a class="a-home " href="gcf_tools_and_inbuilt_components.html">
                    <span>Tools & Components</span>
                </a>
            </li>
        </ul>
    </div>
    <div id="main-content">
        <div class="inside">
        <div>
<!-- Generated by Doxygen 1.8.16 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>GCF</b></li><li class="navelem"><a class="el" href="class_g_c_f_1_1_object_map_event_listener.html">ObjectMapEventListener</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_g_c_f_1_1_object_map_event_listener-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">GCF::ObjectMapEventListener Class Reference<div class="ingroups"><a class="el" href="group__gcf__core.html">GCF Core Module</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>This listens to <a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a> 's events.  
 <a href="class_g_c_f_1_1_object_map_event_listener.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a9db5dad4abfd8b9aaf74e2ed95976d62"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map_event_listener.html#a9db5dad4abfd8b9aaf74e2ed95976d62">ObjectMapEventListener</a> ()</td></tr>
<tr class="separator:a9db5dad4abfd8b9aaf74e2ed95976d62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92807c8dcb2443d3b737d1deb23053d7"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map_event_listener.html#a92807c8dcb2443d3b737d1deb23053d7">~ObjectMapEventListener</a> ()</td></tr>
<tr class="separator:a92807c8dcb2443d3b737d1deb23053d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adfabe2440ff25e32276f79f1f1cd4b3f"><td class="memItemLeft" align="right" valign="top">virtual QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map_event_listener.html#adfabe2440ff25e32276f79f1f1cd4b3f">listenerType</a> () const</td></tr>
<tr class="separator:adfabe2440ff25e32276f79f1f1cd4b3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68df2af538ab51e27efff04e07cd9611"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map_event_listener.html#a68df2af538ab51e27efff04e07cd9611">objectInserted</a> (QObject *object)</td></tr>
<tr class="separator:a68df2af538ab51e27efff04e07cd9611"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f1aea36005765c1260e396cf2b7cd5b"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map_event_listener.html#a1f1aea36005765c1260e396cf2b7cd5b">objectRemoved</a> (QObject *object)</td></tr>
<tr class="separator:a1f1aea36005765c1260e396cf2b7cd5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc6d593a721948f0f6b0e9972d7ecd8d"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_c_f_1_1_object_map_event_listener.html#afc6d593a721948f0f6b0e9972d7ecd8d">objectDeleted</a> (QObject *object)</td></tr>
<tr class="separator:afc6d593a721948f0f6b0e9972d7ecd8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p> 
<pre>
#include &lt;GCF3/ObjectMap&gt;
</pre>
</p>
<p>When set as event listener on <code><a class="el" href="class_g_c_f_1_1_object_map.html" title="This class manages a map of QObject-value pairs.">GCF::ObjectMap</a></code> the corresponding virtual functions in this class will be called when a object pointer is inserted, removed or deleted from the <a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>.</p>
<p>To set this class as event listener of <a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a> you need to use the method <a class="el" href="class_g_c_f_1_1_object_map.html#a5233994da977766cbee949ab0cdd8c14">GCF::ObjectMap::setEventListener(GCF::ObjectMapEventListener* listener)</a>. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a9db5dad4abfd8b9aaf74e2ed95976d62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9db5dad4abfd8b9aaf74e2ed95976d62">&#9670;&nbsp;</a></span>ObjectMapEventListener()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GCF::ObjectMapEventListener::ObjectMapEventListener </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Default contructor. </p>

</div>
</div>
<a id="a92807c8dcb2443d3b737d1deb23053d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a92807c8dcb2443d3b737d1deb23053d7">&#9670;&nbsp;</a></span>~ObjectMapEventListener()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GCF::ObjectMapEventListener::~ObjectMapEventListener </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Destructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="adfabe2440ff25e32276f79f1f1cd4b3f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adfabe2440ff25e32276f79f1f1cd4b3f">&#9670;&nbsp;</a></span>listenerType()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GCF::ObjectMapEventListener::listenerType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the listener type. By default listener type is "GCF::ObjectMapEventListener". </p><dl class="section return"><dt>Returns</dt><dd>the current listener type </dd></dl>

<p>Reimplemented in <a class="el" href="class_g_c_f_1_1_object_map_watcher.html#a3ba42b0308e7ea0cb03bb566f883297d">GCF::ObjectMapWatcher</a>, and <a class="el" href="class_g_c_f_1_1_object_map_event_broadcaster.html#a0258de230ce2a02960a1b5b32989951b">GCF::ObjectMapEventBroadcaster</a>.</p>

</div>
</div>
<a id="a68df2af538ab51e27efff04e07cd9611"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a68df2af538ab51e27efff04e07cd9611">&#9670;&nbsp;</a></span>objectInserted()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GCF::ObjectMapEventListener::objectInserted </td>
          <td>(</td>
          <td class="paramtype">QObject *&#160;</td>
          <td class="paramname"><em>obj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>By default there is no implementation. This function will be called when an <code>QObject</code> pointer - Value pair is inserted into the listening <a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">obj</td><td><code>QObject</code> pointer - Value pair which was inserted into the <a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>. </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented in <a class="el" href="class_g_c_f_1_1_object_map_event_broadcaster.html#a0fdcb9cda4e3ff2e905fe0ad9442bd9f">GCF::ObjectMapEventBroadcaster</a>.</p>

</div>
</div>
<a id="a1f1aea36005765c1260e396cf2b7cd5b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f1aea36005765c1260e396cf2b7cd5b">&#9670;&nbsp;</a></span>objectRemoved()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GCF::ObjectMapEventListener::objectRemoved </td>
          <td>(</td>
          <td class="paramtype">QObject *&#160;</td>
          <td class="paramname"><em>obj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>By default there is no implementation. This function will be called when an <code>QObject</code> pointer is removed from the <a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">obj</td><td><code>QObject</code> pointer which was removed from the listening <a class="el" href="class_g_c_f_1_1_object_map.html">GCF::ObjectMap</a>. </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented in <a class="el" href="class_g_c_f_1_1_object_map_event_broadcaster.html#a78db75c82b0ae59230ad96d3b843468b">GCF::ObjectMapEventBroadcaster</a>.</p>

</div>
</div>
<a id="afc6d593a721948f0f6b0e9972d7ecd8d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afc6d593a721948f0f6b0e9972d7ecd8d">&#9670;&nbsp;</a></span>objectDeleted()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GCF::ObjectMapEventListener::objectDeleted </td>
          <td>(</td>
          <td class="paramtype">QObject *&#160;</td>
          <td class="paramname"><em>obj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>By default there is no implementation. This function will be called when <code>QObject</code> pointer inside the listening <a class="el" href="class_g_c_f_1_1_object_map.html">ObjectMap</a> is deleted inside application. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">obj</td><td><code>QObject</code> pointer which got deleted. </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented in <a class="el" href="class_g_c_f_1_1_object_map_event_broadcaster.html#ad5fc35e0d021a64723ad4586d2a17aee">GCF::ObjectMapEventBroadcaster</a>.</p>

</div>
</div>
</div><!-- contents -->
</div>
</div>
</div>
<div class="footer_content">
<table width="100%" class="footer">
<tr>
<td align="left" width="50%">Copyright &copy; 2013-2019,
 <a class="el" href="http://www.vcreatelogic.com" target="_black">VCreate Logic Private Limited</a></td>
<td align="right" width="50%"><a class="el" href="http://www.vcreatelogic.com/products/gcf" target="_black">GCF - Generic Component Framework</a></td>
</tr>
</table>
</div>
</div>
</body>
</html>
